
<div id="actionbar">
    <a href="javascript:;" url="{:url('store.card/selectCoupon',['card_id' => $card_id])}" class="button button-blue chickWin"> <i class="iconfont icon-add_icon"></i>关联优惠券</a>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th>优惠券信息</th>
            <th class="w100 fn-tar">发现数量</th>
            <th class="w100 fn-tar">满用(￥)</th>
            <th class="w100 fn-tac">类型</th>
            <th class="w100 fn-tar">优惠</th>
            <th class="w120 fn-tac">更新日期</th>
            <th class="w120 fn-tac">状态</th>
            <th class="w100 fn-tac">操作</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td>
                <p class="chickWin fn-cp" url="{:url('coupon.index/review',['id'=>$vo.id])}">
                    <i class="iconfont icon-discount"></i><span class="fn-fb">{$vo.name}</span><br />
                    <span class="gray"><i class="iconfont icon-wodedingdan2"></i>{$vo.tips}</span>
                </p>
            </td>            
            <td class="fn-tar">{$vo.num}</td>
            <td class="fn-tar">￥{$vo.howmuch|money}</td>
            <td class="fn-tac"><span class="badge {switch $vo.types}{case 1}bg-green{/case}{case 2}bg-red{/case}{default /}bg-blue{/switch}">{$vo.typesname}</span></td>
            <td class="fn-tar">{$vo.degree}</td>
            <td class="fn-tac">{$vo.update_time|date="Y-m-d"}</td>
            <td class="fn-tac">
                {if $vo.is_end}
                    <span class="fn-cp badge bg-red" title="过期/领完">失效</span>
                {else}
                    <span class="fn-cp badge {$vo.is_lock?'bg-green':''}">{$vo.is_lock?'禁领取':'禁领取'}</span>
                    <span class="fn-cp badge {$vo.is_top?'bg-green':''}">{$vo.is_top?'推荐':'推荐'}</span>
                {/if}
            </td>
            <td class="fn-tac">
                <a class="button isDel" url="{:url('store.card/delCoupon',['card_id' => $card_id,'coupon_id' => $vo.id])}" href="javascript:;"><i class="iconfont icon-lajixiang"></i>删除</a>
            </td>
        </tr>
        {/foreach}
    </tbody>
</table>
<script type="text/javascript">
Do('base', 'layer', function () {
    $('.isDel').isDel();
    $(".chickWin").win({reload:1});
})
</script>